# New ports collection makefile for:	thoggen
# Date created:				20 October 2006
# Whom:					Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#   $Id$
#

PORTNAME=	thoggen
PORTVERSION=	0.6.0
CATEGORIES=	multimedia
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	A DVD backup utility (DVD ripper), based on GStreamer and Gtk+

BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
LIB_DEPENDS=	hal.1:${PORTSDIR}/sysutils/hal \
		dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes

IGNORE=		does not build, need somebody to port some stuff in C.

USE_GMAKE=	yes
USE_XLIB=	yes
USE_GNOME=	gnometarget intlhack libglade2
USE_GETTEXT=	yes
USE_GSTREAMER=	core dts dvd mpeg2dec ugly
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-valgrind-check
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

DOCS=		AUTHORS	COPYING ChangeLog NEWS README TODO

post-patch:
	@${REINPLACE_CMD} -e 's|" == "|" = "|g' \
		${WRKSRC}/configure

.ifndef (NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
